package cn.iocoder.yudao.module.crm.controller.admin.importtask.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 导入任务新增/修改 Request VO")
@Data
public class ImportTaskSaveReqVO {

    @Schema(description = "任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18390")
    private Long id;

    @Schema(description = "任务状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "任务状态不能为空")
    private Integer status;

    @Schema(description = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "任务类型不能为空")
    private Integer bizType;

    @Schema(description = "所属模块", requiredMode = Schema.RequiredMode.REQUIRED, example = "1206")
    @NotNull(message = "所属模块不能为空")
    private Long moduleId;

    @Schema(description = "是否公海", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否公海不能为空")
    private Integer pool;

    @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "文件路径不能为空")
    private String filePath;

    @Schema(description = "文件名", example = "芋艿")
    private String fileName;

    @Schema(description = "负责人")
    private Long ownerUserId;

    @Schema(description = "重复字段校验", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "重复字段校验不能为空")
    private Integer repeatField;

    @Schema(description = "重复时的操作", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "重复时的操作不能为空")
    private Integer repeatHandle;

    @Schema(description = "数据总量", example = "25853")
    private Integer dataCount;

    @Schema(description = "插入数量", example = "7814")
    private Integer insertCount;

    @Schema(description = "更新数量", example = "16698")
    private Integer updateCount;

    @Schema(description = "失败数量", example = "23902")
    private Integer failCount;

    @Schema(description = "完成时间")
    private LocalDateTime finishTime;

    @Schema(description = "错误描述")
    private String errorMsg;

    @Schema(description = "错误文件地址")
    private String errorFileUrl;

}